import { Layout } from '@fl/utils/routerHelper'

const messageCenter: AppRouteRecordRaw = {
    children: [
        {

            children: [
                {
                    component: () => import('@/pages/marketing-promotion/message-center/system-message/index.vue'),
                    meta: {
                        title: '系统消息配置',
                    },
                    name: 'marketing-promotion-system-message',
                    path: 'system-message',
                },
                {
                    component: () => import('@/pages/marketing-promotion/message-center/system-message/component/add/index.vue'),
                    meta: {
                        activeMenu: '/marketing-promotion/message-center-service/message-template/system-message',
                        hidden: true,
                        noTagsView: true,
                        title: '新建系统消息配置',
                    },
                    name: 'add-system-message',
                    path: 'add-system-message',
                },
                {
                    component: () => import('@/pages/marketing-promotion/message-center/wechat-message/index.vue'),
                    meta: {
                        title: '微信消息配置',
                    },
                    name: 'marketing-promotion-wechat-message',
                    path: 'wechat-message',
                },
                {
                    component: () => import('@/pages/marketing-promotion/message-center/wechat-message/component/add/index.vue'),
                    meta: {
                        activeMenu: '/marketing-promotion/message-center-service/message-template/wechat-message',
                        hidden: true,
                        noTagsView: true,
                        title: '新建微信消息配置',
                    },
                    name: 'add-wechat-message',
                    path: 'add-wechat-message',
                },
                {
                    component: () => import('@/pages/marketing-promotion/message-center/short-message/index.vue'),
                    meta: {
                        title: '短信消息配置',
                    },
                    name: 'marketing-promotion-short-message',
                    path: 'short-message',
                },
                {
                    component: () => import('@/pages/marketing-promotion/message-center/short-message/component/add/index.vue'),
                    meta: {
                        activeMenu: '/marketing-promotion/message-center-service/message-template/short-message',
                        hidden: true,
                        noTagsView: true,
                        title: '新建短信消息配置',
                    },
                    name: 'add-short-message',
                    path: 'add-short-message',
                },
            ],
            meta: {
                icon: 'i-clarity:list-line',
                title: '消息模板',
            },
            name: 'marketing-promotion-message-template',
            path: 'message-template',
        },
        {
            component: () => import('@/pages/marketing-promotion/message-center/notify/index.vue'),
            meta: {
                icon: 'i-clarity:list-line',
                title: '消息通知',
            },
            name: 'marketing-promotion-notify',
            path: 'notify',
        },
        {
            component: () => import('@/pages/marketing-promotion/message-center/notify/send-message/index.vue'),
            meta: {
                activeMenu: '/marketing-promotion/message-center-service/notify',
                hidden: true,
                noTagsView: true,
                title: '消息发送',
            },
            name: 'marketing-promotion-notify-send-message',
            path: 'send-message',
        },

    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        icon: 'i-fluent-emoji-high-contrast:money-bag',
        title: '消息管理',
    },
    name: 'marketing-promotion-message-center-service',
    path: 'message-center-service',
}

export default messageCenter
